158c2753b8891b25ede0be4925ea456555f4944d,idea/src/org/jetbrains/jet/plugin/codeInsight/codeTransformations/branchedTransformations/WhenUtils.java,WhenUtils,introduceWhenSubject,#JetWhenExpression#,115
Before Change
builder.branchExpression(branchExpression);
}
whenExpression.replace(builder.toExpression(whenExpression.getProject()));
}
static String whenConditionToExpressionText(@NotNull JetWhenCondition condition, JetExpression subject) {
After Change
builder.branchExpression(branchExpression);
}
JetWhenExpression newWhenExpression = builder.toExpression(whenExpression.getProject());
whenExpression.replace(newWhenExpression);
return newWhenExpression;
}
@NotNull